package com.wangyk.configserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication
//注册为Eureka的client端
@EnableDiscoveryClient
//注册config-server端
@EnableConfigServer
public class ConfigServerApplication
{

    public static void main(String[] args)
    {
        SpringApplication.run(ConfigServerApplication.class, args);
    }

}

